employees = {
    "John": {
        # 一个季度的考勤天数
        "attendance": [20, 22, 19],
        # 附加信息
        "extra_info": {
            # 职位
            "position": "Manager",
            # 联系方式
            "contact": "13012345678"
        }
    },
    "Judy": {
        "attendance": [20, 22, 19],
        "extra_info": {
            "position": "salesman",
            "contact": "17012345678"
        }
    }
}
# 添加新员工
employees.setdefault("Wick", {
    "attendance": [31],
    "extra_info": {
        "position": "Killer",
        "contact": "secret"}})

# 更新员工考勤
employees["Wick"]["attendance"].append(20)
print(employees)

# 删除员工信息
employees.pop('Wick')
print(employees)

# 获取员工列表
employees_list = list(employees.keys())
print(employees_list)

# 通过姓名查找信息
judy_info = employees['Judy']
print('Judy information:\n', judy_info)
